@extends('layouts.main')
@section('content')
    <link rel="stylesheet" href="/style/plugins/iCheck/all.css">
    <section class="content-header">
        <h1>
            图片
            <small>
                上传
            </small>
        </h1>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-md-3">
                <!-- 分类 -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">
                            分类
                        </h3>
                    </div>
                    <div class="box-body box-profile">
                        <div class="box-body">
                            <!-- Minimal style -->
                            <!-- checkbox -->
                            <div class="form-group">
                            @foreach ($listCategory as $key => $category)
                                <label style="margin-right: 10px;">
                                    <input type="radio" name="category" class="minimal" value="{{$category}}">
                                    {{$key}}
                                </label>
                            @endforeach
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
                <!-- 标签 tag -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">
                            标签
                        </h3>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <strong>
                            <i class="fa fa-pencil margin-r-5">
                            </i>
                            常用标签(按照分类统计支持)
                        </strong>
                        <p>
                            <span class="label label-danger">
                                UI Design
                            </span>
                            <span class="label label-success">
                                Coding
                            </span>
                            <span class="label label-info">
                                Javascript
                            </span>
                            <span class="label label-warning">
                                PHP
                            </span>
                            <span class="label label-primary">
                                Node.js
                            </span>
                        </p>
                        <hr>
                        <strong>
                            <i class="fa fa-file-text-o margin-r-5">
                            </i>
                            分类信息
                        </strong>
                        <p>
                            这里是分类信息，暂时不支持自定义分类，官方介绍，支持自定义后，用户可添加。
                        </p>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
            <div class="col-md-9">
                <!-- general form elements -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">
                            上传图片
                        </h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form role="form">
                        <div class="box-body" id="uploadContain">
                            <div class="form-group">
                                <label for="inputTitle">
                                    图片标题
                                </label>
                                <input type="text" key="title" class="form-control" id="inputTitle" placeholder="图片标题">
                            </div>
                            <div class="form-group">
                                <label for="inputResume">
                                    摘要
                                </label>
                                <input type="text" key="resume" class="form-control" id="inputResume" placeholder="摘要信息">
                            </div>
                            <div class="form-group">
                                <label for="inputResume">
                                    标签
                                </label>
                                <input type="text" key="tags" class="form-control" id="intputTags" placeholder='标签，以英文 ";" 分割'>
                            </div>
                            <div class="form-group">
                                <label for="inputResume">
                                    位置
                                </label>
                                <input type="text" key="location" class="form-control" id="inputLoc" placeholder='位置'>
                            </div>
                            <div class="form-group">
                                <label for="uploadFile">
                                    上传图片
                                </label>
                                <input type="file" name="imgFile" id="uploadFile">
                                <div class="errorinfo"></div>
                                <img class="addImg" src="" />
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-primary">
                                Submit
                            </button>
                        </div>
                    </form>
                </div>
                <!-- /.box -->
                <!-- /.box -->
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#activity" data-toggle="tab" aria-expanded="true">
                                最近添加
                            </a>
                        </li>
                        <li class="">
                            <a href="#timeline" data-toggle="tab" aria-expanded="false">
                                用户评论
                            </a>
                        </li>
                        <li class="">
                            <a href="#settings" data-toggle="tab" aria-expanded="false">
                                Settings
                            </a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="activity">
                            <!-- Post -->
                            <div class="post">
                                <div class="user-block">
                                    <img class="img-circle img-bordered-sm" src="/style/dist/img/user2-160x160.jpg"
                                    alt="user image">
                                    <span class="username">
                                        <a href="#">
                                            Jonathan Burke Jr.
                                        </a>
                                        <a href="#" class="pull-right btn-box-tool">
                                            <i class="fa fa-times">
                                            </i>
                                        </a>
                                    </span>
                                    <span class="description">
                                        Shared publicly - 7:30 PM today
                                    </span>
                                </div>
                                <!-- /.user-block -->
                                <p>
                                    Lorem ipsum represents a long-held tradition for designers, typographers
                                    and the like. Some people hate it and argue for its demise, but others
                                    ignore the hate as they create awesome tools to help create filler text
                                    for everyone from bacon lovers to Charlie Sheen fans.
                                </p>
                                <ul class="list-inline">
                                    <li>
                                        <a href="#" class="link-black text-sm">
                                            <i class="fa fa-share margin-r-5">
                                            </i>
                                            Share
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#" class="link-black text-sm">
                                            <i class="fa fa-thumbs-o-up margin-r-5">
                                            </i>
                                            Like
                                        </a>
                                    </li>
                                    <li class="pull-right">
                                        <a href="#" class="link-black text-sm">
                                            <i class="fa fa-comments-o margin-r-5">
                                            </i>
                                            Comments (5)
                                        </a>
                                    </li>
                                </ul>
                                <input class="form-control input-sm" type="text" placeholder="Type a comment">
                            </div>
                            <!-- /.post -->
                            <!-- Post -->
                            <div class="post clearfix">
                                <div class="user-block">
                                    <img class="img-circle img-bordered-sm" src="/style/dist/img/user2-160x160.jpg"
                                    alt="user image">
                                    <span class="username">
                                        <a href="#">
                                            Sarah Ross
                                        </a>
                                        <a href="#" class="pull-right btn-box-tool">
                                            <i class="fa fa-times">
                                            </i>
                                        </a>
                                    </span>
                                    <span class="description">
                                        Sent you a message - 3 days ago
                                    </span>
                                </div>
                                <!-- /.user-block -->
                                <p>
                                    Lorem ipsum represents a long-held tradition for designers, typographers
                                    and the like. Some people hate it and argue for its demise, but others
                                    ignore the hate as they create awesome tools to help create filler text
                                    for everyone from bacon lovers to Charlie Sheen fans.
                                </p>
                                <form class="form-horizontal">
                                    <div class="form-group margin-bottom-none">
                                        <div class="col-sm-9">
                                            <input class="form-control input-sm" placeholder="Response">
                                        </div>
                                        <div class="col-sm-3">
                                            <button class="btn btn-danger pull-right btn-block btn-sm">
                                                Send
                                            </button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <!-- /.post -->
                            <!-- Post -->
                            <div class="post">
                                <div class="user-block">
                                    <img class="img-circle img-bordered-sm" src="/style/dist/img/user2-160x160.jpg"
                                    alt="user image">
                                    <span class="username">
                                        <a href="#">
                                            Adam Jones
                                        </a>
                                        <a href="#" class="pull-right btn-box-tool">
                                            <i class="fa fa-times">
                                            </i>
                                        </a>
                                    </span>
                                    <span class="description">
                                        Posted 5 photos - 5 days ago
                                    </span>
                                </div>
                                <!-- /.user-block -->
                                <div class="row margin-bottom">
                                    <div class="col-sm-6">
                                        <img class="img-responsive" src="/style/dist/img/user2-160x160.jpg" alt="Photo">
                                    </div>
                                    <!-- /.col -->
                                    <div class="col-sm-6">
                                        <div class="row">
                                            <div class="col-sm-6">
                                                <img class="img-responsive" src="/style/dist/img/user2-160x160.jpg" alt="Photo">
                                                <br>
                                                <img class="img-responsive" src="/style/dist/img/user2-160x160.jpg" alt="Photo">
                                            </div>
                                            <!-- /.col -->
                                            <div class="col-sm-6">
                                                <img class="img-responsive" src="/style/dist/img/user2-160x160.jpg" alt="Photo">
                                                <br>
                                                <img class="img-responsive" src="/style/dist/img/user2-160x160.jpg" alt="Photo">
                                            </div>
                                            <!-- /.col -->
                                        </div>
                                        <!-- /.row -->
                                    </div>
                                    <!-- /.col -->
                                </div>
                                <!-- /.row -->
                                <ul class="list-inline">
                                    <li>
                                        <a href="#" class="link-black text-sm">
                                            <i class="fa fa-share margin-r-5">
                                            </i>
                                            Share
                                        </a>
                                    </li>
                                    <li>
                                        <a href="#" class="link-black text-sm">
                                            <i class="fa fa-thumbs-o-up margin-r-5">
                                            </i>
                                            Like
                                        </a>
                                    </li>
                                    <li class="pull-right">
                                        <a href="#" class="link-black text-sm">
                                            <i class="fa fa-comments-o margin-r-5">
                                            </i>
                                            Comments (5)
                                        </a>
                                    </li>
                                </ul>
                                <input class="form-control input-sm" type="text" placeholder="Type a comment">
                            </div>
                            <!-- /.post -->
                        </div>
                        <!-- /.tab-pane -->
                        <div class="tab-pane" id="timeline">
                            <!-- The timeline -->
                            <ul class="timeline timeline-inverse">
                                <!-- timeline time label -->
                                <li class="time-label">
                                    <span class="bg-red">
                                        10 Feb. 2014
                                    </span>
                                </li>
                                <!-- /.timeline-label -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-envelope bg-blue">
                                    </i>
                                    <div class="timeline-item">
                                        <span class="time">
                                            <i class="fa fa-clock-o">
                                            </i>
                                            12:05
                                        </span>
                                        <h3 class="timeline-header">
                                            <a href="#">
                                                Support Team
                                            </a>
                                            sent you an email
                                        </h3>
                                        <div class="timeline-body">
                                            Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly
                                            ning heekya handango imeem plugg dopplr jibjab, movity jajah plickers sifteo
                                            edmodo ifttt zimbra. Babblely odeo kaboodle quora plaxo ideeli hulu weebly
                                            balihoo...
                                        </div>
                                        <div class="timeline-footer">
                                            <a class="btn btn-primary btn-xs">
                                                Read more
                                            </a>
                                            <a class="btn btn-danger btn-xs">
                                                Delete
                                            </a>
                                        </div>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-user bg-aqua">
                                    </i>
                                    <div class="timeline-item">
                                        <span class="time">
                                            <i class="fa fa-clock-o">
                                            </i>
                                            5 mins ago
                                        </span>
                                        <h3 class="timeline-header no-border">
                                            <a href="#">
                                                Sarah Young
                                            </a>
                                            accepted your friend request
                                        </h3>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-comments bg-yellow">
                                    </i>
                                    <div class="timeline-item">
                                        <span class="time">
                                            <i class="fa fa-clock-o">
                                            </i>
                                            27 mins ago
                                        </span>
                                        <h3 class="timeline-header">
                                            <a href="#">
                                                Jay White
                                            </a>
                                            commented on your post
                                        </h3>
                                        <div class="timeline-body">
                                            Take me to your leader! Switzerland is small and neutral! We are more
                                            like Germany, ambitious and misunderstood!
                                        </div>
                                        <div class="timeline-footer">
                                            <a class="btn btn-warning btn-flat btn-xs">
                                                View comment
                                            </a>
                                        </div>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <!-- timeline time label -->
                                <li class="time-label">
                                    <span class="bg-green">
                                        3 Jan. 2014
                                    </span>
                                </li>
                                <!-- /.timeline-label -->
                                <!-- timeline item -->
                                <li>
                                    <i class="fa fa-camera bg-purple">
                                    </i>
                                    <div class="timeline-item">
                                        <span class="time">
                                            <i class="fa fa-clock-o">
                                            </i>
                                            2 days ago
                                        </span>
                                        <h3 class="timeline-header">
                                            <a href="#">
                                                Mina Lee
                                            </a>
                                            uploaded new photos
                                        </h3>
                                        <div class="timeline-body">
                                            <img src="/style/dist/img/user2-160x160.jpg" alt="..." class="margin">
                                            <img src="/style/dist/img/user2-160x160.jpg" alt="..." class="margin">
                                            <img src="/style/dist/img/user2-160x160.jpg" alt="..." class="margin">
                                            <img src="/style/dist/img/user2-160x160.jpg" alt="..." class="margin">
                                        </div>
                                    </div>
                                </li>
                                <!-- END timeline item -->
                                <li>
                                    <i class="fa fa-clock-o bg-gray">
                                    </i>
                                </li>
                            </ul>
                        </div>
                        <!-- /.tab-pane -->
                        <div class="tab-pane" id="settings">
                            <form class="form-horizontal">
                                <div class="form-group">
                                    <label for="inputName" class="col-sm-2 control-label">
                                        Name
                                    </label>
                                    <div class="col-sm-10">
                                        <input type="email" class="form-control" id="inputName" placeholder="Name">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputEmail" class="col-sm-2 control-label">
                                        Email
                                    </label>
                                    <div class="col-sm-10">
                                        <input type="email" class="form-control" id="inputEmail" placeholder="Email">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputName" class="col-sm-2 control-label">
                                        Name
                                    </label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="inputName" placeholder="Name">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputExperience" class="col-sm-2 control-label">
                                        Experience
                                    </label>
                                    <div class="col-sm-10">
                                        <textarea class="form-control" id="inputExperience" placeholder="Experience">
                                        </textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputSkills" class="col-sm-2 control-label">
                                        Skills
                                    </label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="inputSkills" placeholder="Skills">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <div class="checkbox">
                                            <label>
                                                <input type="checkbox">
                                                I agree to the
                                                <a href="#">
                                                    terms and conditions
                                                </a>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-danger">
                                            Submit
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <!-- /.tab-pane -->
                    </div>
                    <!-- /.tab-content -->
                </div>
                <!-- /.nav-tabs-custom -->
            </div>
            <!-- /.col -->
        </div>
    </section>
    <!-- iCheck 1.0.1 -->
    <script src="/style/plugins/iCheck/icheck.min.js">
    </script>
    <script type="text/javascript" src="/js/ajaxUpload.js"></script>
    <script type="text/javascript" src="/js/jquery.abigimage.js"></script>
    <script type="text/javascript" src="/js/main.js"></script>
    <script type="text/javascript" charset="utf-8">
        $(function() {
            imgUpload.init();
            //iCheck for checkbox and radio inputs
            $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
                checkboxClass: 'icheckbox_minimal-blue',
                radioClass: 'iradio_minimal-blue'
            });
            //Red color scheme for iCheck
            $('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
                checkboxClass: 'icheckbox_minimal-red',
                radioClass: 'iradio_minimal-red'
            });
            //Flat red color scheme for iCheck
            $('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
                checkboxClass: 'icheckbox_flat-green',
                radioClass: 'iradio_flat-green'
            });
        });
    </script>
@endsection